﻿using NLog;
using Quartz;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Text;

namespace GuiZhou.ImageArchive.Update
{
    public class UpdateJob : IJob
    {
        private static Logger logger = LogManager.GetCurrentClassLogger();

        public void Execute(IJobExecutionContext context)
        {
            logger.Info("开始检查更新");
            //Assembly programAss = UpdateTool.GetAssembly();
            //logger.Info("读取程序集完毕" + programAss.FullName);
            //string ProcessKilledStr = ConfigurationManager.AppSettings["UpdateProgram"];
            //ProcessUtils.ProcessKill(ProcessKilledStr);
            UpdateTool.CheckUpdate();
        }
    }
}
